package day08.bai01;

import java.util.Scanner;

public class lainxi04 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str=sc.next();
        int bigcount=0;
        int smallcount=0;
        int numcount=0;
        char[] chars=str.toCharArray();//把字符串转换为char[] 遍历数组
        for (int i = 0; i < chars.length; i++) {
            char c=chars[i];
            if(c>='a'&&c<='z'){
                smallcount++;
            }else if(c>='A'&&c<='Z'){
                bigcount++;
            }else if(c>='0'&&c<='9'){
                numcount++;
            }
        }
        System.out.println(bigcount);
        System.out.println(smallcount);
        System.out.println(numcount);
    }
}
